package service.impl;

import dao.BaseDao;
import dao.PowerBatteryDao;
import dao.impl.PowerBatteryDaoImpl;
import entity.PowerBattery;
import service.PowerBatteryService;

import java.util.List;

public class PowerBatteryServiceImpl extends BaseDao implements PowerBatteryService {
    PowerBatteryDao powerBatteryDao = new PowerBatteryDaoImpl();

    @Override
    public List<PowerBattery> powerList() {
        return powerBatteryDao.powerList();
    }

    @Override
    public PowerBattery powerSelect(int id) {
        return powerBatteryDao.powerSelect(id);
    }

    @Override
    public int powerUpdate(PowerBattery powerBattery) {
        return powerBatteryDao.powerUpdate(powerBattery);
    }

    @Override
    public int powerDelete(int id) {
        return powerBatteryDao.powerDelete(id);
    }
}
